import type { R, P } from '@/type/base'
import shopList from '@/mock/shoplist.json'
import { request } from '@/utils/request'

import type { ShopList } from '@/type/home/shopList'
export const getShopList = async (): R<P<ShopList>> => {
  return await request({
    path: '/buyer/merchant/list',
    method: 'GET',
    data: {
      page: 1,
      size: 10,
    },
    options: {
      hideLoading: true,
    },
  })
}
